package org.ibase4j.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.ibase4j.core.base.BaseMapper;
import org.ibase4j.model.PlatProUser;

public interface PlatProUserMapper extends BaseMapper<PlatProUser> {
    List<Long> selectIdPage(@Param("cm") Map<String, Object> params);

    /**
     * 通过邮箱获取用户信息
     * @param email
     * @return
     */
    PlatProUser isRegist(String email);

    /**
     * 重置用户密码
     * @param user
     */
    void resetPassword(PlatProUser user);

    /**
     * 更新发送邮件信息
     * @param user
     */
    void updateSendInfo( PlatProUser user);

    /**
     * 验证邮件重置密码链接有效性
     * @param user
     * @return
     */
    Integer validateURL(PlatProUser user);
}
